package entity

import "fmt"

type TestPaperInfo struct {
	PaperId    int    `gorm:"type:int;not null;comment:试卷ID"`
	TopicInfo  string `gorm:"type:json;not null;comment:试卷内容"`
	AnswerInfo string `gorm:"type:json;not null;comment:答案列表"`
}

func (TestPaperInfo) TableName() string {
	return "testPaperInfo"
}

func (t TestPaperInfo) ToString() string {
	return fmt.Sprintf(
		"TestPaperInfo{PaperId=%d, TopicInfo=%s, AnswerInfo=%s}",
		t.PaperId,
		t.TopicInfo,
		t.AnswerInfo,
	)
}
